import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home'
import slideBar from '@/components/slideBar'
import aboutUs from '@/pages/aboutUs'
import APP from '@/pages/APP'
import club from '@/pages/club'
import contactUs from '@/pages/contactUs'
import joinUs from '@/pages/joinUs'
import news from '@/pages/news'
import selected from '@/pages/selected'
import newsDetail from '@/pages/newsDetail'
import recruitDetail from '@/pages/recruitDetail'


Vue.use(Router)

export default new Router({
  routes: [
      {
      path: '/',
      name: 'Home',
      component: Home,
      meta:{
        title:'首页'
      }
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home,
      meta:{
        title:'首页'
      }
    },
    {
      path: '/slideBar',
      name: 'slideBar',
      component: slideBar,
      meta:{
        title:'cebian'
      }
    },
    {
      path: '/aboutUs',
      name: 'aboutUs',
      component: aboutUs,
      meta:{
        title:'关于我们'
      }
    },
    {
      path: '/APP',
      name: 'APP',
      component: APP,
      meta:{
        title:'APP'
      }
    },
    {
      path: '/club',
      name: 'club',
      component: club,
      meta:{
        title:'社区精选'
      }
    },
    {
      path: '/contactUs',
      name: 'contactUs',
      component: contactUs,
      meta:{
        title:'联系我们'
      }
    },
    {
      path: '/joinUs',
      name: 'joinUs',
      component: joinUs,
      meta:{
        title:'加入我们'
      }
    },
    {
      path: '/news',
      name: 'news',
      component: news,
      meta:{
        title:'新闻中心'
      }
    },
    {
      path: '/selected',
      name: 'selected',
      component: selected,
      meta:{
        title:'精选好品'
      }
    },
    {
      path: '/newsDetail:newsId',
      name: 'newsDetail',
      component: newsDetail,
      meta:{
        title:'新闻详情'
      }
    },
    {
      path: '/recruitDetail:recruit_id',
      name: 'recruitDetail',
      component: recruitDetail,
      meta:{
        title:'招聘详情'
      }
    },

  ]
})

